package com.xsdl.state.pattern;

import com.xsdl.state.State;

public class FireMarioStateService implements MarioStateService {

    private static final FireMarioStateService instance = new FireMarioStateService();

    public static MarioStateService getInstance() {
        return instance;
    }

    @Override
    public void obtainMushRoom(MarioStateMachine stateMachine) {

    }

    @Override
    public void obtainCape(MarioStateMachine stateMachine) {

    }

    @Override
    public void obtainFireFlower(MarioStateMachine stateMachine) {

    }

    @Override
    public void meetMonster(MarioStateMachine stateMachine) {
        stateMachine.setCurrentStateService(SmallMarioStateService.getInstance());
        stateMachine.setScore(stateMachine.getScore() - 300);
    }

    @Override
    public State getState() {
        return State.FIRE;
    }
}
